package cn.yunyichina.provider.iface.entity.common;

import lombok.Getter;

/**
 * Created by Lullaby on 2017/12/14
 */
public enum HttpMessage {

    SUCCESS("0", "success"),
    FAILURE("1", "failure"),
    INTERNAL_ERROR("2", "internal error"),
    INVALID_PARAMETERS("3", "invalid parameters"),
    NO_DATA("4", "no data"),;

    @Getter
    private String code;

    @Getter
    private String message;

    HttpMessage(String code, String message) {
        this.code = code;
        this.message = message;
    }

}